﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LaoLuo
{
    /// <summary>
    /// timer with alarm
    /// </summary>
    public interface ITimerWithAlarm : IDisposable
    {
        /// <summary>
        /// add alarm to the timer
        /// </summary>
        /// <param name="alarmTime">alarm to added</param>
        void AddAlarm(params DateTime[] alarmTime);

        /// <summary>
        /// add alarm to the timer
        /// </summary>
        /// <param name="alarmTime">alarm to added</param>
        void AddAlarm(IEnumerable<DateTime> alarmTime);

        /// <summary>
        /// start the timer
        /// </summary>
        void Start();

        /// <summary>
        /// stop the timer
        /// </summary>
        void Stop();
    }
}
